﻿@model Doan.Website.Models.Ask
@{
    ViewBag.Title = "CreateQuestion";
}

@using (Html.BeginForm("CreateQuestion", "Share"))
{       
    @Html.ValidationSummary(true)
    <fieldset class="createComment">
        <legend>Gửi câu hỏi</legend>
        <div class="editor-label ">
            <span>Họ tên</span>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.AuthorName)
            @Html.ValidationMessageFor(model => model.AuthorName)
        </div>
        <div class="editor-label">
            <span>Email</span>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-label">
            <span>Chọn nhóm</span>
        </div>
        <div class="editor-field">
            @Html.DropDownListFor(model => model.GroupNewsId, (IEnumerable<SelectListItem>)ViewBag.Group, "---Chọn nhóm---")
            @Html.ValidationMessageFor(model => model.GroupNewsId)
        </div>
        <div class="editor-label">
            <span>Tiêu đề</span>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Title)
            @Html.ValidationMessageFor(model => model.Title)
        </div>
        <div class="editor-label">
            <span>Nội dung</span>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Content)
            @Html.ValidationMessageFor(model => model.Content)
        </div>
        <p class="btncomment">
            <input type="submit" value="Gửi câu hỏi" class="btn btn-success btn-large" />
        </p>
    </fieldset>
}
